REM ------- Install Iit.Template01 on Tst -----------------------------------------
call \\fileShare.tst2.dom\TCR\%ComputerName%\Iit.Template01\install_tst_TCR.cmd

IF  NOT %ErrorLevel% == 0 (
Exit
)
CALL :DoInstall
Exit

:DoInstall
IF /I %InstallType% == MajorUpgrade (
msiexec /q /i "#MSI#.msi"  /l*vx "#MSI#.install.log"  SB_ENV="%SBEnv%"  ADDLOCAL="%AddLocal%" SB_ALIAS="%SBAlias%" REBOOT=ReallySuppress  WIXFAILWHENDEFERRED=0  SB_USERDUMP=0  SB_TCR_ENABLE="%SBTCRenable%"  SB_TCR_DIR="%SBTCRdir%"   SB_DEXCHECK_DISABLE="%SBDexCheckDisable%"
call install_CopyMsiLog.cmd "#MSI#.install.log"
goto :eof
)

IF /I %InstallType% == VirginInstall (
msiexec /q /i "#MSI#.msi"  /l*vx "#MSI#.install.log" SB_DOMAIN="%SBDomain%" SB_USER_NAME="%SBUserName%"  SB_PASSWORD="%SBUserPassword%"  SB_ENV="%SBEnv%" ADDLOCAL="%AddLocal%" SB_DISABLE_SERVICES="%SBDisableServices%"  SB_ALIAS="%SBAlias%" WIXFAILWHENDEFERRED=0  SB_USERDUMP=0  REBOOT=ReallySuppress  SB_TCR_ENABLE="%SBTCRenable%"  SB_TCR_DIR="%SBTCRdir%"  SB_DEXCHECK_DISABLE="%SBDexCheckDisable%"
call install_CopyMsiLog.cmd "#MSI#.install.log"
goto :eof
)
Exit -1